package jhlee42.services;

import model.Account2VO;
import jhlee42.Interfaces.AccountI2Service;

public class Account2Service implements AccountI2Service {

	@Override
	public void getMonthlyInterestRate(Account2VO ac) {
		double mir;
		mir = ac.getInteresRate() / 12;
		ac.setMonthlyInterestRate(mir);
	}

	@Override
	public void withDraw(Account2VO ac, int amount) {
		int balence;
		balence = ac.getBalance()-amount;
		ac.setBalance(balence);
		
		
	}

	@Override
	public void deposit(Account2VO ac, int amount) {
		int balence;
		balence = ac.getBalance()+amount;
		ac.setBalance(balence);
		
	}







}
